const dayjs = require("dayjs")
const mongoose = require("../../../db/db");
const { randomUUID } = require("crypto");

/**
 * @description 管理系统 素材管理  每个上传的图片文件都建表
 */
const Schema = mongoose.Schema({
    id: {
        type: String,
    },
    //创建日期
    createDate: {
        type: String,
    },
    //父ID
    fileName: {
        type: String,
        require: true
    },
    //菜单类型
    fileType: {
        type: String,
        require: true
    },
    path: {
        type: String,
        require: true
    },
    size: {
        type: Number,
        require: true
    },
    uploader: {
        type: String,
        require: true
    }
})
const MODEL = mongoose.model("MAIN_TAB_MATERIAL", Schema);
module.exports = MODEL;